/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.impexp.model.transform;

import cn.ekuma.impexp.FieldConverse;
import cn.ekuma.impexp.FieldGenerator;
import cn.ekuma.impexp.model.*;

import com.openbravo.data.loader.SentenceList;
import com.openbravo.data.loader.SerializerRead;
import com.openbravo.data.loader.SerializerWrite;
import com.openbravo.data.loader.TableDefinition;
import java.util.Map;

/**
 *
 * @author Administrator
 */
public abstract class AbstractTableTransform extends AbstractImpExpTableDefinition{

    protected AbstractImpExpTableDefinition defaultTable;

    public AbstractTableTransform(AbstractImpExpTableDefinition table) {
        super(table.getBaseTable());
        defaultTable=table;
    }

    @Override
    public void addRow(ImpExpRowDefinition row) {
        defaultTable.addRow(row);
    }

    @Override
    public Map<Integer, FieldGenerator> getFieldGenerators() {
        return defaultTable.getFieldGenerators();
    }

    @Override
    public Map<Integer, FieldConverse> getFiledConversions() {
        return defaultTable.getFiledConversions();
    }

    @Override
    public int[] getFilterIndexs() {
        return defaultTable.getFilterIndexs();
    }

    public  ImpExpRowDefinition getRow(int rowIndex){
        return  defaultTable.getRow(rowIndex);
    }
    
    @Override
    public int getState() {
        return defaultTable.getState();
    }

	@Override
	public int getRowCount() {
		return defaultTable.getRowCount();
	}

	
    
    
}
